import { IS_DEBUG } from "../config";
import { NMold } from "../config/constants";
import { RSetState } from "../config/constants";
import * as THREE from "three";

// 3d模型相关数据
export default {
  namespace: NMold,
  state: {
    points: [], // 点位数据
    direction: new THREE.Vector3(), // 玩家方向

    load: !IS_DEBUG, // 加载状态
    ready: false, // 准备状态
    action: false, // 玩家动作状态
    autoRotate: false, //自动旋转状态
  },
  reducers: {
    [RSetState](state: any, payload: any) {
      return {
        ...state,
        ...payload,
      };
    },
  },
  effects: {},
};
